<script>
	export default {
		onLaunch: function() {
			// #ifdef APP-PLUS
			const domModule = uni.requireNativePlugin('dom')
			domModule.addRule('fontFace', {
				'fontFamily': "graceuiiconfont",
				'src': "url('https://at.alicdn.com/t/c/font_823462_whtuj4ktcl.ttf?t=1703075468532')"
			});
			console.log("字体加载成功");
			// #endif

			// #ifdef MP-WEIXIN
			wx.onNeedPrivacyAuthorization(function(e) {
				console.log(e);
			})
			// #endif
		},
		onShow: function() {},
		onHide: function() {}
	}
</script>

<!-- #ifndef APP-NVUE -->
<style lang="scss">
	/* 加载框架核心样式 */
	@import "./Grace6/css/grace.scss";

	/* 加载自定义样式 */
	@import "./custom/custom.scss";

	page {
		background: #F8F8F8;
	}
</style>
<!-- #endif -->
<!-- #ifdef APP-NVUE -->
<style lang="scss">
	/* 加载框架核心样式 */
	@import "./Grace6/css/grace.scss";
	/* 加载自定义样式 */
	@import "./custom/custom.scss";

	.gui-icons {
		font-family: graceuiiconfont;
		font-style: normal;
	}
</style>
<!-- #endif -->
<style lang="scss">
	@import "uview-plus/index.scss";
	/* 加载框架核心样式 */
	@import "./Grace6/css/grace.scss";
	/* 加载自定义样式 */
	@import "./custom/custom.scss";
	/*加载系统自带的颜色*/
	@import "./Grace6/css/colors.css";
	@import "./custom/font-ali.css";

	page {
		background: #fffcfc;
		color: #333333;
		font-family: 'AlibabaPuHuiTi', sans-serif;
	}

	.gui-icons {
		font-family: graceuiiconfont;
		font-style: normal;
	}
</style>